package com.school.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

/**
 * <p>
 * 订单主表
 * </p>
 *
 * @author Forever
 * @since 2025-07-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("od_order")
public class Order implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 订单编号
     */
    @TableId(value = "order_id", type = IdType.AUTO)
    private Long orderId;

    /**
     * 关联用户ID
     */
    @TableField("user_name")
    private String userName;

    /**
     * 客户手机号码
     */
    @TableField("phone")
    private String phone;

    /**
     * 下单日期
     */
    @TableField("order_date")
    private LocalDate orderDate;

    /**
     * 下单时间
     */
    @TableField("order_time")
    private LocalTime orderTime;

    /**
     * 总出库量
     */
    @TableField("total_rolls")
    private Integer totalRolls;

    /**
     * 订单类别
     */
    @TableField("order_type")
    private String orderType;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;


}
